@import '../../style/them.scss';
@import "../../style/iconfont";


.search-container {
  height: 8vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;

  .icon {
    line-height: 0;
  }

  input {
    box-sizing: border-box;
    background-color: #ffffff;
    width: 100%;
    height: 60rpx;
    margin: 40rpx 20rpx;
    border-radius: 50rpx;
    padding: 0 70rpx;
    z-index: 1;
    box-shadow: $shadow;
  }

  .close-btn {
    z-index: 1;
    position: absolute;
    right: 30rpx;
    width: 30rpx;
    height: 55rpx;
    margin-right: 20rpx;

    button {
      width: 100%;
      height: 100%;
      font-size: 40rpx;
      display: flex;
      justify-content: center;
      line-height: 50rpx;
      border-radius: 50rpx;
      background-color: rgba(0, 0, 0, 0.1);

      &:active {
        font-size: 24rpx;
        opacity: 0.9;
        width: 97%;
        height: 97%;
      }

    }
  }
}

.article-result-container {
  box-sizing: border-box;
  width: 740rpx;
  margin: 0 5rpx;

  .data-list {
    box-shadow: $shadow;
    display: flex;
    margin: 14rpx 20rpx;
    padding: 10rpx 0;
    border-radius: 10rpx;

    .img {
      width: 220rpx;
      height: 140rpx;
      padding: 10rpx 16rpx;

      image {
        width: 100%;
        height: 100%;
        border-radius: 10rpx;
        box-shadow: $shadow;
      }
    }

    .item {
      padding: 10rpx 0;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      width: 430rpx;


      .title {
        width: 100%;
        height: 60rpx;
        font-size: 36rpx;
        font-weight: bold;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .tab-item {
        display: flex;
        justify-content: space-between;
        margin-right: 10rpx;
        font-size: 24rpx;

        .el {
          margin: 0 10rpx;
        }
      }
    }
  }
}

.food-result-container {
  box-sizing: border-box;
  width: 740rpx;
  margin: 0 5rpx;
  position: absolute;

  .data-list {
    box-shadow: $shadow;
    display: flex;
    margin: 14rpx 20rpx;
    padding: 10rpx 0;
    border-radius: 10rpx;

    .img {
      width: 100rpx;
      height: 100rpx;
      margin: 10rpx;

      image {
        width: 100%;
        height: 100%;
        border-radius: 50rpx;
      }
    }

    .tab-item {
      margin: 20rpx 6rpx;

      .calorie {
        color: $gray-text-color;
        margin-top: 6rpx;
        font-size: 24rpx;
      }
    }

    .icon {
      line-height: 120rpx;
      font-size: 50rpx;
      margin-left: 350rpx;
      color: #cecccc;
    }

  }
}

.hot-list-container {

  .hot {
    margin: 20rpx 40rpx 40rpx 50rpx;
    font-size: 30rpx;
    letter-spacing: 4rpx;
    font-weight: bold;
    color: #f36a6a;
  }

  .video-hot-list {
    width: 680rpx;
    height: 60rpx;
    margin: 20rpx 30rpx;

    .item {
      margin: 20rpx;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      letter-spacing: 4rpx;
      font-size: 28rpx;
    }
  }

  .food-hot-container {
    margin: auto 50rpx;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    width: 600rpx;
    height: 200rpx;

    .food-hot-list {
      margin: 0 10rpx;
      width: 120rpx;
      height: 60rpx;
      background: rgba(0, 0, 0, 0.05);
      color: #8743c7;
      border-radius: 30rpx;
      text-align: center;
      line-height: 60rpx;
      font-size: 28rpx;
      letter-spacing: 6rpx;
    }
  }
}